package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Team implements Serializable {
    private String tno;

    private String tname;

    private String tyear;

    private String tmanager;

    private String tplace;

    private String ticon;

    private static final long serialVersionUID = 1L;

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTyear() {
        return tyear;
    }

    public void setTyear(String tyear) {
        this.tyear = tyear;
    }

    public String getTmanager() {
        return tmanager;
    }

    public void setTmanager(String tmanager) {
        this.tmanager = tmanager;
    }

    public String getTplace() {
        return tplace;
    }

    public void setTplace(String tplace) {
        this.tplace = tplace;
    }

    public String getTicon() {
        return ticon;
    }

    public void setTicon(String ticon) {
        this.ticon = ticon;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Team other = (Team) that;
        return (this.getTno() == null ? other.getTno() == null : this.getTno().equals(other.getTno()))
            && (this.getTname() == null ? other.getTname() == null : this.getTname().equals(other.getTname()))
            && (this.getTyear() == null ? other.getTyear() == null : this.getTyear().equals(other.getTyear()))
            && (this.getTmanager() == null ? other.getTmanager() == null : this.getTmanager().equals(other.getTmanager()))
            && (this.getTplace() == null ? other.getTplace() == null : this.getTplace().equals(other.getTplace()))
            && (this.getTicon() == null ? other.getTicon() == null : this.getTicon().equals(other.getTicon()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTno() == null) ? 0 : getTno().hashCode());
        result = prime * result + ((getTname() == null) ? 0 : getTname().hashCode());
        result = prime * result + ((getTyear() == null) ? 0 : getTyear().hashCode());
        result = prime * result + ((getTmanager() == null) ? 0 : getTmanager().hashCode());
        result = prime * result + ((getTplace() == null) ? 0 : getTplace().hashCode());
        result = prime * result + ((getTicon() == null) ? 0 : getTicon().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tno=").append(tno);
        sb.append(", tname=").append(tname);
        sb.append(", tyear=").append(tyear);
        sb.append(", tmanager=").append(tmanager);
        sb.append(", tplace=").append(tplace);
        sb.append(", ticon=").append(ticon);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}